GXSetTransformMapping
You can use theGXSetTransformMapping
function to assign a mapping to a transform object.
void GXSetTransformMapping(gxTransform target, const gxMapping *map);
target
- A reference to the transform object you want to assign the mapping to.
map
- A pointer to a mapping structure containing the matrix you want to assign as the mapping property of the target transform.
DESCRIPTION
TheGXSetTransformMapping
function copies information from the mapping structure pointed to by themap
parameter into the mapping property of the transform object referenced by thetarget
parameter.You can specify
nil
for themap
parameter, in which case this function sets the mapping property of the target transform to the identity mapping. (An identity mapping has no transforming effect on shape geometries that it is applied to.)SPECIAL CONSIDERATIONS
You may provide any values for the elements of the mapping structure pointed to by themap
parameter, with one exception: the lower-right element of this matrix (element [2][2]) may not be 0.ERRORS, WARNINGS, AND NOTICES
Errors out_of_memory transform_is_nil Notices (debugging version) mapping_unaffected SEE ALSO
For information about the mapping property of the transform object, see the section "Mapping" beginning on page 6-10. For information about mapping matrices in general, see the mathematics chapter of Inside Macintosh: QuickDraw GX Environment and Utilities.